package com.woniuxy.createthread;

/**
 * <P> @Author: ideaAdmin
 * <P> TODO: Class
 * <P> TODO:
 * <P> Date: 2022/4/6:9:21
 * <P> Description:
 */

public class ThreadDebug {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            m1(10);
        },"thread1");
        thread.start();

        m1(20);
    }

    public static int m1(int i){
        int y = i+1;
        Object o = m2();
        return y;
    }

    public static Object m2(){
        Object o = new Object();
        return o;
    }
}
